home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1991-12-03 | 698 b | 25 lines |
- Procedure BUTTON[Z,Z$,X,Y,B,TB]
- ' By John Smit
- ' Used to define and print a zone around some text within a border
- ' The entire area within the border is zoned and not just the text
- '
- ' use 'reserve zones' command first
- '
- ' z=zone number
- ' z$=text to zone around
- ' x / y = x and y location of top left corner of the text
- ' leave room for a one character border around the text as well
- ' b=background color
- ' tb=Text/border color
- '
- X1=X Graphic(X-1)
- Y1=Y Graphic(Y-1)
- X2=X Graphic(Len(Z$)+1+X)
- Y2=Y Graphic(Y+2)
- Paper P
- Pen TB
- Locate X,Y
- Print Border$(Z$,1);
- Set Zone Z,X1+3,Y1+3 To X2-3,Y2-4
- '
- End Proc